using System;
using System.Collections.Generic;
using System.Text;
using HappySprite;

namespace HappyInvaders
{
    class ExplosionEntity : Entity
    {
        public ExplosionEntity()
        {
        }

        internal override void OnAdd()
        {
            Owner.Explosion = this;

            // Schedule lifetime
            Global.EventScheduler.Schedule(Constants.ExplosionLifetime, Remove);
        }

        internal override void OnRemove()
        {
            Owner.Explosion = null;
        }
    }
}
